package demo5;

public class Test5 {
    public static void main(String[] args) {
        Greeting greeting=new Greeting() {
            @Override
            public void greet() {
                System.out.println("Hello");
            }
        };
        greeting.greet();
    }
}
